package com.yuxi.topic4;

public class Dog {
    private String color;
    private String breed;

    public Dog(String color, String breed) {
        this.color = color;
        this.breed = breed;
    }

    public Dog() {
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }

    public void eat(){
        System.out.println(color+"的"+breed+"正在啃骨头......");
    }
    public void lookHome(){
        System.out.println(color+"的"+breed+"正在看家.....");
    }

    @Override
    public String toString() {
        return "Dog{" +
                "color='" + color + '\'' +
                ", breed='" + breed + '\'' +
                '}';
    }
}
